import { useContext } from 'react';
import { Context as VotesContext } from '../contexts/Votes';

const useVotes = () => {
  const { votes } = useContext(VotesContext);
  return [votes];
};

export default useVotes;
